.class Lcom/xingbook/cinema/d/d;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;


# instance fields
.field final synthetic a:Lcom/xingbook/cinema/d/a;


# direct methods
.method constructor <init>(Lcom/xingbook/cinema/d/a;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
    .locals 7

    if-nez p3, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v0}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;)Landroid/widget/MediaController$MediaPlayerControl;

    move-result-object v0

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->getDuration()I

    move-result v0

    int-to-long v0, v0

    int-to-long v2, p2

    mul-long/2addr v2, v0

    const-wide/16 v4, 0x3e8

    div-long/2addr v2, v4

    iget-object v4, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v4}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;)Landroid/widget/MediaController$MediaPlayerControl;

    move-result-object v4

    long-to-int v5, v2

    invoke-interface {v4, v5}, Landroid/widget/MediaController$MediaPlayerControl;->seekTo(I)V

    iget-object v4, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v4}, Lcom/xingbook/cinema/d/a;->g(Lcom/xingbook/cinema/d/a;)Landroid/widget/TextView;

    move-result-object v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v4}, Lcom/xingbook/cinema/d/a;->g(Lcom/xingbook/cinema/d/a;)Landroid/widget/TextView;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    long-to-int v2, v2

    invoke-static {v6, v2}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v5, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "/"

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    long-to-int v0, v0

    invoke-static {v3, v0}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    const v1, 0x36ee80

    invoke-virtual {v0, v1}, Lcom/xingbook/cinema/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;Z)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v0}, Lcom/xingbook/cinema/d/a;->f(Lcom/xingbook/cinema/d/a;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/xingbook/cinema/d/a;->a(Lcom/xingbook/cinema/d/a;Z)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v0}, Lcom/xingbook/cinema/d/a;->c(Lcom/xingbook/cinema/d/a;)I

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v0}, Lcom/xingbook/cinema/d/a;->h(Lcom/xingbook/cinema/d/a;)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    const/16 v1, 0x1388

    invoke-virtual {v0, v1}, Lcom/xingbook/cinema/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/d;->a:Lcom/xingbook/cinema/d/a;

    invoke-static {v0}, Lcom/xingbook/cinema/d/a;->f(Lcom/xingbook/cinema/d/a;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method
